package construction.decorator;

public class Drink {
    String des;
    float price;

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    //计算价格
    public float cost(){
        return price;
    }

    @Override
    public String toString() {
        return this.getClass() + "{" +
                "des='" + getDes() + '\'' +
                ", price=" + cost() +
                '}';
    }
}
